home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 16
/
CU Amiga Magazine's Super CD-ROM 16 (1997-10-16)(EMAP Images)(GB)[!][issue 1997-11].iso
/
CUCD
/
Graphics
/
Ghostscript
/
source
/
gsfcmap.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-03-10
|
2KB
|
59 lines
/* Copyright (C) 1997 Aladdin Enterprises. All rights reserved.
This file is part of Aladdin Ghostscript.
Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
or distributor accepts any responsibility for the consequences of using it,
or for whether it serves any particular purpose or works at all, unless he
or she says so in writing. Refer to the Aladdin Ghostscript Free Public
License (the "License") for full details.
Every copy of Aladdin Ghostscript must include a copy of the License,
normally in a plain ASCII text file named PUBLIC. The License grants you
the right to copy, modify and redistribute Aladdin Ghostscript, but only
under certain conditions described in the License. Among other things, the
License requires that the copyright notice and this notice be preserved on
all copies.
*/
/* gsfcmap.h */
/* CMap data definition */
/* Requires gsstruct.h */
#ifndef gsfcmap_INCLUDED
# define gsfcmap_INCLUDED
#include "gsccode.h"
/* Define the abstract type for a CMap. */
#ifndef gs_cmap_DEFINED
# define gs_cmap_DEFINED
typedef struct gs_cmap_s gs_cmap;
#endif
/* We only need the structure descriptor for testing. */
extern_st(st_cmap);
/* Define the structure for CIDSystemInfo. */
typedef struct gs_cid_system_info_s {
gs_const_string Registry;
gs_const_string Ordering;
int Supplement;
} gs_cid_system_info;
#define gs_cid_system_info_max_ptrs 2
/* We only need the structure descriptor for embedding. */
extern_st(st_cid_system_info);
/* ---------------- Procedural interface ---------------- */
/*
* Decode a character from a string using a CMap, updating the index.
* Return 0 for a CID or name, N > 0 for a character code where N is the
* number of bytes in the code, or an error. For undefined characters,
* we return CID 0.
*/
int gs_cmap_decode_next(P5(const gs_cmap *pcmap, const gs_const_string *str,
uint *pindex, uint *pfidx, gs_glyph *pglyph));
#endif /* gsfcmap_INCLUDED */